{App::registerCoreScript('jquery')}
{App::registerCoreScript('base')}
{App::registerScript('inc/Modules/Daiting/js/edit_profiles.js')}

<table class="list">
	<tr>
		<th class="_20">Ред.</th>
		<th class="_20" style="min-width: 50px;">Сатус</th>
		<th>Пользователь</th>
		<th class="_20">Удл.</th>
	</tr>
	{foreach $profiles as $profile}
		<tr class="save" rel="{$profile->id}">
			<td class="center">
				<a href="#" class="edit" rel="{$profile->id}"><img src="{$tpl_url}images/pencil.png"/></a>
			</td>
			<td class="center">
				<img src="{App::config()->data('relative_url')}inc/Daitind/img/status{$profile->status}.png"/>
			</td>
			<td>{$profile->User->login}</td>
			<td class="center">
				<a class="delete" href="{$base_url}&action=profile_delete&id={$profile->id}"><img src="{$tpl_url}images/trash.png"/></a>
			</td>
		</tr>
		<tr class="edit" rel="{$profile->id}" style="display: none;">
			{include file="profile_edit.html" profile=$profile}
		</tr>
	{/foreach}
	<tr>
		{include file="profile_edit.html" profile=$_profile}
	</tr>
</table>

